package com.hecun.crm.service;

import com.hecun.crm.pojo.Customer;
import com.hecun.crm.pojo.QueryVo;
import com.hecun.crm.utils.Page;
import org.springframework.stereotype.Service;

public interface CustomerService {
    /**
     * 根据QueryVo的条件查询Customer,并封装到Page对象中
     * @param queryVo
     * @return
     */
    Page<Customer> queryCustomerByQueryVo(QueryVo queryVo);

    /**
     * 根据id查询用户,用于回显
     * @param id
     * @return
     */
    Customer queryCustomerById(Long id);

    /**
     * 根据id编辑用户
     * @param customer
     */
    void updateCustomerById(Customer customer);

    /**
     * 删除用户
     * @param id
     */
    void deleteCustomerById(Long id);
}
